//
//  AllViewModel.m
//  万词王
//
//  Created by rimi on 2016/12/1.
//  Copyright © 2016年 dongfumei. All rights reserved.
//

#import "AllViewModel.h"
#import "AllModel.h"

@interface AllViewModel ()

@property (nonatomic, strong) AllModel *model;

@end

@implementation AllViewModel

- (void)getData {
    
    [self.model getAllData];
    
}

- (NSString *)oberString {
    
    return @"model.dataList";
}

- (NSString *)cellName:(NSIndexPath *)indexPath {
    
    NSString *name = self.model.dataList[@"bihua"];
    return name;
}

- (NSString *)detail:(NSIndexPath *)indexPath{
    NSString *detail = self.model.dataList[@"xiangjie"];
    return detail;
}

- (NSInteger)numberOfRow{
    NSArray *arr =self.model.dataList[@"result"][@"xiangjie"];
    return arr.count;
}

- (AllModel *)model {
    
    if (!_model) {
        
        _model = [[AllModel alloc] init];
    }
    return _model;
}

@end
